<div class="container-fluid" style="margin: 0px 15px 0px 15px;">
<ol class="breadcrumb">
  <li><a href="<?php echo base_url('/index.php/inicio');?>">Início</a></li>
  <li><a href="<?php echo base_url('index.php/ausentes/novo');?>">Ausência</a></li>
  <li class="active">Consulta</li>
</ol>
			<fieldset>
			<legend>Consulta Férias/Afastamentos/Licenças</legend>
		<?php
		//PERMISSAO 
		if(viewPermissao(array('1','2'),$session_data)){
		?>
<!--			<a data-toggle="modal" href="<?php echo base_url('index.php/ausentes/novo');?>" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-plus"></span>Adicionar Ausencia</a>-->
		<?php
		}
		?>
		<br/>
		<br/>
	<table id="example" class="display responsive nowrap" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>Nome</th>
                <th>Data Início</th>
                <th>Data Final</th>
                <th>Observação</th>
            </tr>
        </thead>
        <tbody>
			<?php
			foreach($ausentes as $p){
				echo "<tr>";
					echo "<td>".$p->nome_completo."</td>";
					echo "<td>".$p->dt_inicio."</td>";
					echo "<td>".$p->dt_fim."</td>";
					echo "<td>".$p->observacao."</td>";
				echo "</tr>";
			}
			?>
		</tbody>
    </table>
			</fieldset>

		</div>
		<script type="text/javascript" charset="utf-8">

			$(function () {
				$('#example').DataTable({
					"language": {
						"url": "<?php echo base_url('includes/js/Portuguese-Brasil.json'); ?>"
					},
					 "pagingType": "simple"
				});
			});
		</script>
	</body>
</html>